<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./lib/bootstrap.css">
    <script src="./lib/jquery.min.js"></script>
</head>

<body>
    <button id="btn-get">发起不带参数的get请求</button>
    <script>
        $(function() {
            $('#btn-get').on('click',function() {
                $.get('http://www.liulongbin.top:3006/api/getbooks',function(res) {
                    console.log(res);
                    
                })
            })
        })
    </script>
</body>
</html>